<?php
/*******************************************************************************
 * $Date:: Jan 12, 2011 5:50:43 PM											   $
 * $Revision: 													               $
 * $Author:: Tuan Duong													       $
 * $Comment::															       $
 ******************************************************************************/ 

/**
 * Class description.
 * @package: Lua
 * @subpackage: Subpackage
 * @author: Tuan Duong <bacduong[at]gmail[dot]com>
 * @version: 
 */
 
class Lua_Crypt {
    /**
     * @static
     * @param string $algorithm
     * @return Lua_Crypt_Abstract
     */
    public static function factory($algorithm = 'md5')
    {
        $cryptClass = 'Lua_Crypt_' . ucfirst($algorithm);
        return new $cryptClass();
    }
}
